package com.xhu.water_supply.service.impl;

import com.xhu.water_supply.dto.SalaryDTO;
import com.xhu.water_supply.mapper.SalaryMapper;
import com.xhu.water_supply.service.SalaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SalaryServiceImpl implements SalaryService {
    @Autowired
    private SalaryMapper salaryMapper;

    @Override
    public int Refresh() {
        return salaryMapper.Refresh();
    }

    @Override
    public List<SalaryDTO> getDefault() {
        return salaryMapper.getDefault();
    }

    @Override
    public List<SalaryDTO> getSalary(int month, int id) {
        return salaryMapper.getSalary(month, id);
    }
}
